<!DOCTYPE html>
<html>
<head>
    <meta charset='UTF-8'>
    <title>box-sizing测试</title>
    <style>
        * {
            font-family: '微软雅黑';
        }
        
        div.container {
            width: 500px;
            border: 1em solid deeppink;
        }
        
        div.box{
            width: 50%;
            box-sizing: border-box;
            text-align: center;
            border: 1em solid dodgerblue;
            
            padding: 10px;
        }
        div.content{
            width: 50%;
            box-sizing: content-box;
            text-align: center;
            border: 1em solid dodgerblue;
            
            padding: 10px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="content">
            box-sizing: content-box;
        </div>
    </div>
    </br>
    <div class="container">
        <div class="box">
            box-sizing: border-box;
        </div>
    </div>
</body>